﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Login : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //Response.Redirect("Protegidos/Administracao/Default.aspx");
    }
    protected void btnOK_Click(object sender, EventArgs e)
    {
        if (Session["WorkFlow"] != null)
        {
            Session["Usuario"] = "435";
            Response.Redirect(string.Concat("Protegidos/WorkFlow/", Session["PaginaWorkFlow"].ToString()));
        }
        else
        {
            //redireciona para página padrão do sistema/módulo
            Response.Redirect("Protegidos/Empresas/Default.aspx");
        }
    }
}
